package com.thf.controller;


import com.thf.service.impl.NavServiceImpl;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/index")
public class NavController extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        TopFootUtil.setNavTitleHref(req);
        NavServiceImpl nsi = new NavServiceImpl();
        req.setAttribute("navData",nsi.setNavData());
        req.getRequestDispatcher("/jsp/index.jsp").forward(req,resp);
    }
}
